package cn.fx.user.domain;


import cn.fx.basic.domain.BaseDomain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class User extends BaseDomain {

    //用户名
    private String username;
    //电话
    private String phone;
    //邮件
    private String email;
    //盐值
    private String salt;
    //密码
    private String password;
    //状态
    private Integer state;
    //年龄
    private Integer age;
    //时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime = new Date();
    //图片
    private String headImg;

    //logininfo对应的id
    private Long logininfo_id;

    //logininfo表对象
    private Logininfo logininfo;

}
